using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections.Generic;
using Ent.Web;
using Ent.Voice.Show;
using Ent.Voice;

public partial class Controls_Common_EntryAgreement : Ent.Web.WebControl.UserControl
{
    private Settings _pop;
    protected void Page_Load(object sender, EventArgs e)
    {
        PopuplateControls();
    }
    public void PopuplateControls()
    {
    }
    public override void SetEvents() { }
    public override void AddJavascript() { }
    public override void Init()
    {
        foreach (string key in Values.Keys)
        {
            if (Values[key] == null)
                continue;
            switch (key)
            {
                case Global.UserAgreement:
                    bool agr = true;
                    Boolean.TryParse(Values[key].ToString(), out agr);
                    agree.UserAgreed = agr;
                    break;
                default:
                    break;
            }
        }
    }
    public override void Dispose()
    {
        //throw new Exception("The method or operation is not implemented.");
    }
    public override Dictionary<string, object> GetValues()
    {
        Dictionary<string, object> retValue = new Dictionary<string, object>();
        retValue.Add(Global.UserAgreement, agree.UserAgreed);
        return retValue;
    }
}
